/*
 * serialComm_api.h
 *
 *  Created on: Apr 25, 2021
 *      Author: taoyu
 */

#ifndef SERIALCOMM_INC_SERIALCOMM_API_H_
#define SERIALCOMM_INC_SERIALCOMM_API_H_

#include <stdint.h>
#include "serialComm_cfg.h"

extern void serialComm_init(SERIAL_COMM_CHANNEL channel);

extern int serialComm_send(SERIAL_COMM_CHANNEL channel, uint8_t * buffer, int length);

extern int serialComm_receive(SERIAL_COMM_CHANNEL channel, uint8_t * buffer, int length);

#endif /* SERIALPORT_SERIALPORT_H_ */

